Transport Input: SSH, Telnet, All, None Keywords

您所在的位置:网站首页 packet tracer invalid input Transport Input: SSH, Telnet, All, None Keywords

Transport Input: SSH, Telnet, All, None Keywords

2024-07-14 11:38:22| 来源: 网络整理| 查看: 265

The virtual terminal (vty) lines allow remote access to the devices. We can use the Cisco ‘transport input’ command to set which protocols are allowed to access the virtual terminal lines. We can choose from the following transport input command keywords to set the allowed protocols on the virtual terminal lines:

ssh – allows TCP/IP SSH protocol onlytelnet – allows TCP/IP Telnet protocol onlyall – allows all protocolsnone – blocks all protocolstelnet ssh – allows both Telnet and SSH protocols

 

Telnet Input Configuration

To configure, in the Command Line Interface (CLI), we need to enter the command ‘transport input {all | none | telnet | ssh}’ under the virtual terminal (vty) line configuration mode. We can allow different protocols on the virtual terminal lines, and each vty line accepts one user only. Virtual terminal lines are evaluated starting from the line vty 0 forward.

Router>en Router#config t Enter configuration commands, one per line. End with CNTL/Z. R1(config)#line vty 0 R1(config-line)#login local R1(config-line)#transport input ssh R1(config-line)#exit R1(config)#line vty 1 R1(config-line)#login local R1(config-line)#transport input telnet R1(config-line)#exit R1(config)#line vty 2 R1(config-line)#login local R1(config-line)#transport input all R1(config-line)#exit R1(config)#line vty 3 R1(config-line)#login local R1(config-line)#transport input none R1(config-line)#exit R1(config)#line vty 4 R1(config-line)#login local R1(config-line)#transport input telnet ssh

 

In the example configuration above, virtual terminal (vty) line 0 was configured with the ‘transport input ssh’ command. Therefore, vty 0 enables SSH connections only. Virtual terminal (vty) line 1 has the command ‘transport input telnet’ and it permits only Telnet connections. The ‘all’ transport input command keyword was used on vty 2. Thus all protocols, both Telnet and SSH protocols, are allowed.

Virtual terminal (vty) line 3 was configured with the ‘none’ keyword, so no protocol is allowed to connect via vty 3. Lastly, ‘transport input telnet ssh’ was entered on vty 4. Meaning, both Telnet and SSH protocols are allowed on the virtual terminal (vty) line 4.

 

Verifying the Transport Input Command

In this example, we’ve configured R1 with the transport input commands shown above. We can use the ‘show run‘ command to view the configured transport input commands in the device. The ‘show line‘ command is used to show which line is in use.

transport input ssh

Let’s connect R2 to R1 via SSH. I’ve set the username as ‘study’ and the password as ‘ccnp’.

R2# R2#ssh -v 2 -l study 192.168.1.1 Password: R1>

 

If we do a ‘show line’ on R1, the output is as shown as below:

R1#sh line Tty Line Typ Tx/Rx A Roty AccO AccI Uses Noise Overruns Int * 0 0 CTY - - - - 0 0 0/0 - 1 1 AUX 9600/9600 - - - - 0 0 0/0 - * 2 2 VTY - - - - 2 0 0/0 - 3 3 VTY - - - - 0 0 0/0 - 4 4 VTY - - - - 0 0 0/0 - 5 5 VTY - - - - 0 0 0/0 - 6 6 VTY - - - - 0 0 0/0 - 7 7 VTY - - - - 0 0 0/0 -

 

The asterisk on the left means that the line is in use. In the output above, lines 0 and 2 have asterisks. That indicates that a user is connected to the console (CTY) line and vty 0. The first VTY line, line 2 VTY, is mapped to vty 0 automatically.

 

Now, let’s connect R3 to R1 via Telnet. Again, the username is ‘study’, and the password is ‘ccnp’.

R3#telnet 192.168.2.1 Trying 192.168.2.1 ...Open User Access Verification Username: study Password: R1>

 

If we enter the ‘show line’ command on R1, we will have the output below:

R1#show line Tty Line Typ Tx/Rx A Roty AccO AccI Uses Noise Overruns Int * 0 0 CTY - - - - 0 0 0/0 - 1 1 AUX 9600/9600 - - - - 0 0 0/0 - * 2 2 VTY - - - - 4 0 0/0 - * 3 3 VTY - - - - 1 0 0/0 - 4 4 VTY - - - - 0 0 0/0 - 5 5 VTY - - - - 0 0 0/0 - 6 6 VTY - - - - 0 0 0/0 - 7 7 VTY - - - - 0 0 0/0 -

 

You can see that the asterisk was added on line 3 VTY, which is mapped to vty 1. We now have active connections via the console line, virtual terminal (vty) lines 0 and 1 using SSH and Telnet, respectively.

Download our Free CCNA Study Guide PDF for complete notes on all the CCNA 200-301 exam topics in one book.

We recommend the Cisco CCNA Gold Bootcamp as your main CCNA training course. It’s the highest rated Cisco course online with an average rating of 4.8 from over 30,000 public reviews and is the gold standard in CCNA training:



【本文地址】

公司简介

联系我们

今日新闻


点击排行

实验室常用的仪器、试剂和
说到实验室常用到的东西,主要就分为仪器、试剂和耗
不用再找了,全球10大实验
01、赛默飞世尔科技(热电)Thermo Fisher Scientif
三代水柜的量产巅峰T-72坦
作者:寞寒最近,西边闹腾挺大,本来小寞以为忙完这
通风柜跟实验室通风系统有
说到通风柜跟实验室通风,不少人都纠结二者到底是不
集消毒杀菌、烘干收纳为一
厨房是家里细菌较多的地方,潮湿的环境、没有完全密
实验室设备之全钢实验台如
全钢实验台是实验室家具中较为重要的家具之一,很多

推荐新闻


图片新闻

实验室药品柜的特性有哪些
实验室药品柜是实验室家具的重要组成部分之一,主要
小学科学实验中有哪些教学
计算机 计算器 一般 打孔器 打气筒 仪器车 显微镜
实验室各种仪器原理动图讲
1.紫外分光光谱UV分析原理:吸收紫外光能量,引起分
高中化学常见仪器及实验装
1、可加热仪器:2、计量仪器:(1)仪器A的名称:量
微生物操作主要设备和器具
今天盘点一下微生物操作主要设备和器具,别嫌我啰嗦
浅谈通风柜使用基本常识
 众所周知,通风柜功能中最主要的就是排气功能。在

专题文章

    CopyRight 2018-2019 实验室设备网 版权所有 win10的实时保护怎么永久关闭